import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/memberLevel/list',
    method:'get',
    params:params
  })
}

// 查询列表
export function listVip(query) {
  return request({
    url: '/memberLevel/pagelist',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getVip(id) {
  return request({
    url: '/memberLevel/getinfo/' + id,
    method: 'get'
  })
}

// 新增
export function addVip(data) {
  return request({
    url: '/memberLevel/create',
    method: 'post',
    data: data
  })
}

// 修改
export function updateVip(data) {
  return request({
    url: '/memberLevel/update/'+data.id,
    method: 'post',
    data: data
  })
}

// 删除岗位
export function delVip(id) {
  return request({
    url: '/memberLevel/delete/' + id,
    method: 'get'
  })
}
